from datetime import datetime

from sqlalchemy import Column, String, Integer, DateTime

from api.utils.base import Base


class Document(Base):
    __tablename__ = "t_document"
    id = Column(String, primary_key=True)
    content = Column(String, comment="文件内容")
    vector = Column(String, comment="父级")
    created_by = Column(String, comment="创建人")
    meta = Column(String, comment="元数据")
    kb_item_id = Column(String, comment="知识库文件ID")
    create_date = Column(DateTime, comment="创建时间")